package com.ioc.common.enums.error;

/**
 * 系统异常编码表
 *
 * @author ONEC
 */
public enum SystemErrorEnum {

    /**
     * 处理成功
     */
    SUCCESS("处理成功", 1000),
    /**
     * 系统异常
     */
    FAILED("处理失败", 1111),
    /**
     * 系统异常
     */
    SYSTEM_ERROR_ENUM("系统异常", 2000),

    /**
     * 无效请求
     */
    INVALID_REQUEST("无效请求", 2001),
    ;

    private String msg;

    private Integer index;

    SystemErrorEnum(String msg, Integer index) {
        this.msg = msg;
        this.index = index;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }
}
